<?php
namespace app\controller;

use app\BaseController;
use app\Model\SurveysHistroryModel;
use think\facade\View;

class NoticePages extends BaseController
{
    //通知的成功页面
    public function noticeSuccess(){
        //刷新
        try {
            (new SurveysHistroryModel())->insert([
                'hash'=>input('rid'),
                'status'=>10,
                'created_at'=>time(),
                'complete_time'=>time()
            ]);
        }catch (\Exception $exception){
            echo $exception->getMessage();
        }
        return View::fetch('noticePages/success');
    }
    
    public function terminated(){
        return View::fetch('noticePages/terminated');
    }
    
    public function qualityTerminated(){
        return View::fetch('noticePages/quality_terminated');
    }
    
    public function quotaFull(){
        return View::fetch('noticePages/quota_full');
    }
}
